package com.scalar.forecast.forecastEntry;

import java.util.ArrayList;

/**
 * User: Sujan Kumar
 * Date: Feb 11, 2005
 * Time: 10:52:49 AM
 */
public class SearchField
{
    private String name = "";
    private String displayName = "";
    private String type = "";
    private String propertyName = "";
    private String propertyValue = "";
    private int sortOrder = 0;
    private boolean display = false;
    private int displaySize = 5;
    private ArrayList propertyValues = new ArrayList();

    public SearchField()
    {
    }

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = ( displayName == null ? null : displayName.trim() );
    }

    public int getDisplaySize() {
        return displaySize;
    }

    public void setDisplaySize(int displaySize) {
        this.displaySize = displaySize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = ( name == null ? null : name.trim() );
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = ( propertyName == null ? null : propertyName.trim() );
    }

    public String getPropertyValue() {
        return propertyValue;
    }

    public void setPropertyValue(String propertyValue) {
        this.propertyValue = ( propertyValue == null ? null : propertyValue.trim() );
    }

    public ArrayList getPropertyValues() {
        return propertyValues;
    }

    public void setPropertyValues(ArrayList propertyValues) {
        this.propertyValues = propertyValues;
    }

    public int getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = ( type == null ? null : type.trim() );
    }
}
